<?php
require_once('../includes/frameworkajax.php');
//Adquirindo c�digo do file
$sql = "select nextval('documento.tb_file_ci_file_seq') as ci_file;";
$query = Connection::query($sql);
$row = $query->fetch();
echo $row['ci_file'];
?>